#include <bits/stdc++.h>
#define int long long
using namespace std;
int n;
const int N=1e5+10;
int a[N];
priority_queue<int>q;
signed main() {
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++)cin>>a[i];
    sort(a+1,a+n+1);
    for(int i=1;i<=n;i++) {
        if(q.size()&&-q.top()<a[i])q.pop();
        q.push(-a[i]);
    }
    cout<<q.size()<<endl;
    return 0;
}
/*

*/
